package com.cicc.beergamevirtualsimulationsystem.model.roleBinding;

import com.cicc.beergamevirtualsimulationsystem.annotation.EnumValid;
import com.cicc.beergamevirtualsimulationsystem.common.constant.RoleTypeConstant;
import com.cicc.beergamevirtualsimulationsystem.common.constant.RoomConstant;
import com.cicc.beergamevirtualsimulationsystem.common.enums.userTypeEnum.RoleType;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 角色绑定
 */
@Data
public class RoleBindingReq {
    /**
     * 用户id
     */
    @NotNull
    private String userId;
    /**
     * 角色类型id
     */
    @NotNull
    private String roleId;
    /**
     * 角色类型
     */
    @EnumValid(enumClass = RoleType.class, message = RoleTypeConstant.ROLE_TYPE_ERROR)
    private Integer roleType;

    /**
     * 房间id
     */
    @NotNull(message = RoomConstant.ROOM_ID_ERROR)
    private String roomId;
}
